# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-tweaks
pkgver=45.0
pkgrel=1
pkgdesc="GNOME3 tool to customize advanced options"
url="https://wiki.gnome.org/Apps/Tweaks"
# armhf, s390x blocked by mozjs91 -> gnome-shell-schemas
arch="noarch !armhf !s390x"
license="GPL-3.0-or-later AND CC0-1.0"
depends="
	dconf
	gnome-settings-daemon
	gnome-shell-schemas
	mutter-schemas
	py3-gobject3
	"
makedepends="
	libhandy1-dev
	gettext-dev
	meson
	"
subpackages="$pkgname-lang $pkgname-pyc"
source="https://download.gnome.org/sources/gnome-tweaks/${pkgver%.*}/gnome-tweaks-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
2bc6d64a412c13f84a971d157ce7ebfac31d791af8d4bfc80d7f6b8f88445ecd40dc9d9d12aee0688590ab6d9535add18f244dd9a216e3b59c82e1c88a1c7f86  gnome-tweaks-45.0.tar.xz
"
